<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://meerkat.qunar.com/web" prefix="web" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<web:designCss/>
<%@include file="/WEB-INF/include/head.jsp" %>
<style type="text/css">
  .content td { height:25px;}
</style>
</head>
<body>
    <div class="wrapper">
        <web:titleBar title="选手详情" />

        <div class="main content">
            <table>
                <tr>
                    <td>报名序号</td>
                    <td><input type="text" value="${item.inviteCode}"/></td>
                    <td>状　　态</td>
                    <td><input type="text" value="<web:writeCodeValue codeList="competitorStatusLoader" key="${item.status}"/>" /></td>
                    <td rowspan="5"><img src="${item.avatar}" height="167"/></td>
                </tr>
                <tr>
                    <td>姓　　名</td>
                    <td><input type="text" value="${item.name}" /></td>
                    <td>年　　龄</td>
                    <td><input type="text" value="${item.age}"/></td>
                </tr>
                <tr>
                    <td>手机号码</td>
                    <td><input type="text" value="${item.mobile}"/></td>
                    <td>电子邮箱</td>
                    <td><input type="text" value="${item.email}"/></td>
                </tr>
                <tr>
                    <td>学　　校</td>
                    <td><input type="text" value="${item.school}"/></td>
                    <td>专　　业</td>
                    <td><input type="text" value="${item.major}"/></td>
                </tr>
                <tr>
                    <td>年　　级</td>
                    <td><input type="text" value="${item.grade}"/></td>
                    <td>登陆帐号</td>
                    <td><input type="text" value="${item.username}"/></td>
                </tr>
                <tr>
                  <td>自我介绍</td>
                  <td colspan="5">
                    <textarea cols="80" rows="14">${item.comment}</textarea>
                  </td>
                </tr>
                <tr>
                    <td colspan="5">
                        <a href="list.htm" class="button button-green">返回</a>
                        <c:if test="${item.status==1}">
                            <web:ifAuthorized path="${PATH}competitor/lock">
                            <a href="lock.htm?id=${item.id}&forward=/competitor/detail.htm?id=${item.id}" class="button button-blue">锁定</a>
                            </web:ifAuthorized>
                        </c:if>
                        <c:if test="${item.status!=1}">
                            <web:ifAuthorized path="${PATH}competitor/active">
                            <a href="active.htm?id=${item.id}&forward=/competitor/detail.htm?id=${item.id}" class="button button-blue">激活</a>
                            </web:ifAuthorized>
                        </c:if>
                        <c:if test="${item.status!=2}">
                            <web:ifAuthorized path="${PATH}competitor/delete">
                            <a href="delete.htm?id=${item.id}&forward=/competitor/detail.htm?id=${item.id}" class="button button-red">删除</a>
                            </web:ifAuthorized>
                        </c:if>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <script type="text/javascript">
        $(document).ready(function(){
            $(".content input").prop("disabled", "disabled");
            $(".content textarea").prop("disabled", "disabled");
        });
    </script>
</body>
</html>
